package com.sojson.project.kd.kdn.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.sojson.util.DateUtil;
import com.sojson.util.kd.kdn.bean.KdnResult;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import springfox.documentation.annotations.ApiIgnore;

/**
 * 快递鸟回调控制器
 * 
 * @author liu
 * @date 2021-04-01
 */
@Api(tags = "快递鸟回调")
@ApiIgnore
@RestController
@RequestMapping("/notify/kd/kdn")
public class NofityKdnController {

    /**
     * 快递鸟回调
     * 
     * @return
     * @throws Exception 
     */
    @RequestMapping
    @ApiOperation("快递鸟回调接口")
    public Object callBack() throws Exception {
        KdnResult kdnResult = new KdnResult();
        kdnResult.setSuccess(true);
        kdnResult.setEBusinessID("1707088");
        kdnResult.setUpdateTime(DateUtil.nowString(DateUtil.YYYY_MM_DD_HHFMMFSS));
        return kdnResult;
    }

}